﻿using DbEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
   public class spcontentService:BaseService
    {
        public static void InsertContent(spcontent obj)
        {
            new spcontentService().InsertContents(obj);
        }
        public void InsertContents(spcontent obj)
        {
            string sqlstr = "INSERT into spcontent(ID,WebName,WebUrl,addr,InUrl,CiShu,caogao,Title,Source,typ,Autos,BuileDate,Content,list) VALUES(@ID,@WebName,@WebUrl,@addr,@InUrl,@CiShu,@caogao,@Title,@Source,@typ,@Autos,@BuileDate,@Content,@list)";
            Db.ExecuteBySql(new StringBuilder(sqlstr), obj);
        }
 

    }
}
